#include <iostream>
#include "../head/TreeNode.h"

using namespace std;


// 226. Invert Binary Tree
class Solution {
public:
    TreeNode* invertTree(TreeNode* root) {
        if(root == NULL) return NULL:
		invertTree(root->left);
		invertTree(root->right);
		swap(root->left, root->right);
		return root;
    }
};
